package com.myhealth.hb.measurmentscanner;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;


public class Main extends Activity {

    private AcceptThread thread;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    protected void onResume() {
        super.onResume();
        thread = new AcceptThread(DeviceApplication.adapter, this);
        thread.start();
    }

    public void onConnect()
    {
        Intent i = new Intent(this, BloodPressureGenerator.class);
        startActivity(i);
    }

    @Override
    protected void onStop() {
        super.onDestroy();
        thread.cancel();
    }
}
